﻿using System;

namespace Crow.Library.Foundation.Exceptions
{
    /// <summary>
    /// Represents the dependency resolving is failed.
    /// </summary>
    [Serializable]
    public class DependencyResolveFailedException : Exception
    {
        /// <summary>
        /// Initializes a new instance of <see cref="DependencyResolveFailedException"/> with the given type.
        /// </summary>
        /// <param name="dependencyType"></param>
        public DependencyResolveFailedException(Type dependencyType)
            : base(string.Format("Dependency for type '{0}' not found.", dependencyType.FullName))
        {
        }
    }
}